---
title: Human in the Loop (HITL)
icon: "lucide/User"
description: Allow your agent and users to collaborate on complex tasks.
---

import { CTACards } from "@/components/react/cta-cards";

<video
  src="https://cdn.copilotkit.ai/docs/copilotkit/images/coagents/human-in-the-loop-example.mp4"
  className="rounded-lg shadow-xl"
  loop
  playsInline
  controls
  autoPlay
  muted
/>

{/* TODO-DOCS-CREWAI-CREWS: Add Travel App Example */}

## What is Human-in-the-Loop (HITL)?

Human-in-the-loop (HITL) allows agents to request human input or approval during execution, making AI systems more reliable and trustworthy. This pattern is essential when building AI applications that need to handle complex decisions or actions that require human judgment.

<Frame className="my-0">
  <img
    src="https://cdn.copilotkit.ai/docs/copilotkit/images/coagents/coagents-hitl-infographic.png"
    alt="Agentic Copilot Human in the Loop"
    className="mt-4 mb-0 shadow-md"
  />
</Frame>

## When should I use this?

HITL combines the efficiency of AI with human judgment, creating a system that's both powerful and reliable. The key advantages include:

- **Quality Control**: Human oversight at critical decision points
- **Edge Cases**: Graceful handling of low-confidence situations
- **Expert Input**: Leverage human expertise when needed
- **Reliability**: More robust system for real-world use

## How can I use this?

Read more about the approach to HITL in CrewAI Crews.

<CTACards
  columns={1}
  cards={[
    {
      iconKey: "share2",
      title: "Flow-based",
      description:
        "Utilize CrewAI Crews to create Human-in-the-Loop workflows.",
      href: "/crewai-crews/human-in-the-loop/flow",
    },
  ]}
/>
